/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.data.repository.tdengine.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.FieldDefaults;

import java.sql.Timestamp;

/**
 * <b>(AbstractTimeStampEntity)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/8/1
 */
@Getter
@Setter
@FieldDefaults(level = AccessLevel.PRIVATE)
public abstract class AbstractTimeStampEntity implements TimeStampEntityEnable {
    /** 时间戳，默认当前时间 */
    @JSONField(ordinal = 99)
    Timestamp ts = new Timestamp(System.currentTimeMillis());
}